package com.dfiov.cloud.msmtools.controller;


import com.dfiov.cloud.msmtools.entity.vo.msmtools.OpUserAccountVo;
import com.dfiov.cloud.msmtools.mapper.entity.msmtools.OpUserAccount;
import com.dfiov.cloud.msmtools.service.business.OpUserAccountService;
import com.pateo.qingcloud.framework.common.base.BaseRestResponse;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/msmtools/opUserAccount")
public class OpUserAccountController {

    @Resource
    private OpUserAccountService opUserAccountService;

    @PostMapping("/getOpUserAccount")
    public BaseRestResponse<OpUserAccount> getOpUser(@RequestBody OpUserAccountVo opUserAccountVo) {
        return opUserAccountService.getOpUserAccount(opUserAccountVo);
    }

    @GetMapping("/updateOpUserLockStatus")
    public BaseRestResponse<String> updateOpUserLockStatus(@RequestParam String accountName) {
        return opUserAccountService.updateOpUserAccountLockStatus(accountName);
    }


}
